﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using BOSS.Domain.Security;

namespace BOSS.Domain.Customers
{
    /// <summary>
    /// 会员卡
    /// </summary>
    public class CustomerCard : DomainEntity<int>
    {
        /// <summary>
        /// 获取 / 设置 会员卡号
        /// </summary>
        public virtual string CardNumber { get; set; }

        /// <summary>
        /// 获取 / 设置 旧密码
        /// </summary>
        public virtual string OldPassword { get; set; }

        /// <summary>
        /// 获取 / 设置 密码
        /// </summary>
        public virtual string Password { get; set; }

        /// <summary>
        /// 获取 / 设置 持卡人
        /// </summary>
        public virtual Customer Cardholder { get; set; }

        /// <summary>
        /// 获取 / 设置 客户账号
        /// </summary>
        public virtual CustomerAccount CustomerAccount { get; set; }

        /// <summary>
        /// 获取 / 设置 状态
        /// </summary>
        public virtual CustomerCardState State { get; set; }

        /// <summary>
        /// 获取 / 设置 激活日期
        /// </summary>
        public virtual DateTime? ActivationDate { get; set; }

        /// <summary>
        /// 获取 / 设置 工作流程记录
        /// </summary>
        public virtual IList<CustomerCardFlowRecord> WorkFlowRecords { get; set; }
    }
}
